package com.eleven.trades.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eleven.trades.entity.User;

public interface UserMapper extends BaseMapper<User> {
    int deleteByPrimaryKey(Integer userId);

//    @Insert("INSERT INTO user(user_id, user_card) VALUES (#{userId}, #{userCard})")
//    int insert(User record);


    int insertSelective(User record);

//    @Select("select * from user where user_id = #{userId}")
    User selectByPrimaryKey(Integer userId);
//    @Select("select * from user where user_phone =#{userPhone}")
    User  selectByUserPhone(String userPhone);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);


}
